<script setup>
import { ref } from "vue";
import Son from "./components/Son.vue";
let money = ref(10000)
let car = ref('宝马')
const add = (val) => {
    money.value += val
}
const reduce = (val) => {
    money.value -= val
}
</script>

<template>
    <h1>我是父组件👍</h1>
    <Son :money="money" :car="car" @add="add" @reduce="reduce"></Son>
</template>
